import sqlite3

# 连接到SQLite数据库
conn = sqlite3.connect('d:/manage1/graduation-project/manage1/manage1/manage/db.sqlite3')
cursor = conn.cursor()

# 查看auth_user表的结构
print('auth_user表结构:')
cursor.execute('PRAGMA table_info(auth_user)')
for column in cursor.fetchall():
    print(column)

# 查询用户记录
print('\n用户表记录:')
cursor.execute('SELECT id, username, is_superuser, is_staff, is_active FROM auth_user')
for row in cursor.fetchall():
    print(row)

# 关闭连接
conn.close()